SlideShare a Scribd company logo
Summary Of Loops In Java
You can use a loop to go over a block of code repeatedly.  You can think of it like this:
"Loop FOR a set number of times." The structure of the For Loop is this: for ( start_value ; end_value ; increment_number ) {  //YOUR_CODE_HERE  }
eg:  for(int i=1; i<11; i++){   System.out.println(&quot;Count is: &quot; + i);  }
The output of this program is Count is: 1  Count is: 2 Count is: 3  Count is: 4  Count is: 5 Count is:  6 Count is:  7 Count is:  8 Count is:  9 Count is: 10
Done! That’s It! You’re done with a basic orientation! Now go have fun exploring & learning Java! Click the  icon at the bottom to proceed!

More Related Content

PPT
Qbasic introduction
DOCX
Q basic ch
PPTX
In just one hour i will make you a power shell ninja
PDF
Debugging Drupal with Xdebug
PPT
String variables
PPT
Java and inheritance
PPT
Krazykoder summary of the java class constructor
PPT
Krazykoder summary of passing multiple values to methods
Qbasic introduction
Q basic ch
In just one hour i will make you a power shell ninja
Debugging Drupal with Xdebug
String variables
Java and inheritance
Krazykoder summary of the java class constructor
Krazykoder summary of passing multiple values to methods
Ad

Krazykoder loos in java

  • 2. You can use a loop to go over a block of code repeatedly. You can think of it like this:
  • 3. &quot;Loop FOR a set number of times.&quot; The structure of the For Loop is this: for ( start_value ; end_value ; increment_number ) { //YOUR_CODE_HERE }
  • 4. eg: for(int i=1; i<11; i++){ System.out.println(&quot;Count is: &quot; + i); }
  • 5. The output of this program is Count is: 1 Count is: 2 Count is: 3 Count is: 4 Count is: 5 Count is: 6 Count is: 7 Count is: 8 Count is: 9 Count is: 10
  • 6. Done! That’s It! You’re done with a basic orientation! Now go have fun exploring & learning Java! Click the icon at the bottom to proceed!